package cn.b.sky.mes.em.model;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;

import cn.b.sky.common.model.ImeCommon;

/**
 * 
 * <strong>Title : MaintainTask.java<br></strong>
 * <strong>Package : cn.b.sky.mes.em.model<br></strong>
 * <strong>Description : </strong>维护任务实体类<br> 
 * <strong>Create on : 2015-11-9 下午01:26:34<br></strong>
 * <p>
 * @author zhaoxin01<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人 | 修改日期 | 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class MaintainTask extends ImeCommon implements Serializable {

  /** 
  * @Fields serialVersionUID 
  * @creator     :zhaoxin01
  */
  private static final long serialVersionUID = -4085360495764843231L;

  /**
   * 任务编号:nvarchar2(20) <Primary Key>
   */
  private String taskCode;

  /**
   * 设备编号:nvarchar2(20)
   */
  private String equipmentCode;

  /**
   * 策略编号:nvarchar2(20)
   */
  private String strategyCode;

  /**
   * 计划维护日期:date(0)
   */
  @DateTimeFormat(iso = ISO.DATE_TIME, pattern = "yyyy-MM-dd")
  private Date plannedMaintainDate;

  /**
   * 状态编号:nvarchar2(30)
   */
  private String statusECode;

  private String statusECodeText;

  /**
   * 计划外任务标志:number(1)
   */
  private int unPlannedFlag;

  /**
   * 维护说明:nvarchar2(200)
   */
  private String memo;

  @DateTimeFormat(iso = ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
  private Date maintainStartDateTime;

  @DateTimeFormat(iso = ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
  private Date maintainEndDateTime;

  private String maintainUser;

  private String maintainMemo;

  private String maintainResult;

  private String equipmentText;//设备描述

  private String strategyText;//策略描述

  private String languageCode;

  private String statusECodeType;

  private String strategyTypeECode;//策略类型

  private int count;

  private int total;

  private int plan;

  private int execute;

  private int cancel;

  private int done;

  public String getStrategyTypeECode() {
    return strategyTypeECode;
  }

  public void setStrategyTypeECode(String strategyTypeECode) {
    this.strategyTypeECode = strategyTypeECode;
  }

  public int getTotal() {
    return total;
  }

  public void setTotal(int total) {
    this.total = total;
  }

  public int getPlan() {
    return plan;
  }

  public void setPlan(int plan) {
    this.plan = plan;
  }

  public int getExecute() {
    return execute;
  }

  public void setExecute(int execute) {
    this.execute = execute;
  }

  public int getCancel() {
    return cancel;
  }

  public void setCancel(int cancel) {
    this.cancel = cancel;
  }

  public int getDone() {
    return done;
  }

  public void setDone(int done) {
    this.done = done;
  }

  public int getCount() {
    return count;
  }

  public void setCount(int count) {
    this.count = count;
  }

  public String getLanguageCode() {
    return languageCode;
  }

  public void setLanguageCode(String languageCode) {
    this.languageCode = languageCode;
  }

  public String getStatusECodeType() {
    return statusECodeType;
  }

  public void setStatusECodeType(String statusECodeType) {
    this.statusECodeType = statusECodeType;
  }

  public String getStatusECodeText() {
    return statusECodeText;
  }

  public void setStatusECodeText(String statusECodeText) {
    this.statusECodeText = statusECodeText;
  }

  public String getEquipmentText() {
    return equipmentText;
  }

  public void setEquipmentText(String equipmentText) {
    this.equipmentText = equipmentText;
  }

  public String getStrategyText() {
    return strategyText;
  }

  public void setStrategyText(String strategyText) {
    this.strategyText = strategyText;
  }

  public Date getMaintainStartDateTime() {
    return maintainStartDateTime;
  }

  public void setMaintainStartDateTime(Date maintainStartDateTime) {
    this.maintainStartDateTime = maintainStartDateTime;
  }

  public Date getMaintainEndDateTime() {
    return maintainEndDateTime;
  }

  public void setMaintainEndDateTime(Date maintainEndDateTime) {
    this.maintainEndDateTime = maintainEndDateTime;
  }

  public String getMaintainUser() {
    return maintainUser;
  }

  public void setMaintainUser(String maintainUser) {
    this.maintainUser = maintainUser;
  }

  public String getMaintainMemo() {
    return maintainMemo;
  }

  public void setMaintainMemo(String maintainMemo) {
    this.maintainMemo = maintainMemo;
  }

  public String getMaintainResult() {
    return maintainResult;
  }

  public void setMaintainResult(String maintainResult) {
    this.maintainResult = maintainResult;
  }

  public String getTaskCode() {
    return taskCode;
  }

  public void setTaskCode(String taskCode) {
    this.taskCode = taskCode;
  }

  public String getEquipmentCode() {
    return equipmentCode;
  }

  public void setEquipmentCode(String equipmentCode) {
    this.equipmentCode = equipmentCode;
  }

  public String getStrategyCode() {
    return strategyCode;
  }

  public void setStrategyCode(String strategyCode) {
    this.strategyCode = strategyCode;
  }

  public Date getPlannedMaintainDate() {
    return plannedMaintainDate;
  }

  public void setPlannedMaintainDate(Date plannedMaintainDate) {
    this.plannedMaintainDate = plannedMaintainDate;
  }

  public String getStatusECode() {
    return statusECode;
  }

  public void setStatusECode(String statusECode) {
    this.statusECode = statusECode;
  }

  public int getUnPlannedFlag() {
    return unPlannedFlag;
  }

  public void setUnPlannedFlag(int unPlannedFlag) {
    this.unPlannedFlag = unPlannedFlag;
  }

  public String getMemo() {
    return memo;
  }

  public void setMemo(String memo) {
    this.memo = memo;
  }

}
